
source /mnt/soft/eda/arm/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/env.bashrc
set -e

aarch64-linux-gnu-gcc -c test.S -o test.o
aarch64-linux-gnu-ld test.o -o test.elf

model_path=/home/long/ARM/FastModelsPortfolio_11.3/examples/LISA/FVP_Base/Build_AEMv8A-AEMv8A/Linux64-Release-GCC-4.8

fastmodel_path=/home/long/ARM
tarmac_plgin=$fastmodel_path/FastModelsPortfolio_11.3/plugins/Linux64_GCC-4.8/TarmacText.so
tarmac_plgin=$fastmodel_path/FastModelsPortfolio_11.3/plugins/Linux64_GCC-4.8/TarmacTrace.so

sve_plugin=$fastmodel_path/FastModelsPortfolio_11.3/plugins/Linux64_GCC-4.8/ScalableVectorExtension.so
paramter="--plugin $tarmac_plgin"
paramter="$paramter
--plugin $sve_plugin
-C cluster0.NUM_CORES=1
-C cluster1.NUM_CORES=0
"
$model_path/isim_system $paramter test.elf
# $model_path/isim_system $*


